<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <script type="text/javascript">
        function check_input(form)
        {
          if(form.leibie.value=="") {
                 alert('请输入新增图书类别名!');
                 form.leibie.select();
                 return(false);
           }
          return(true);
        }
    </script>
    <body>
        <?php
        // put your code here
        ?>
        <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
 <form name="form1" method="post" action="savenewclass.php" onSubmit="return check_input(this);">
  <tr>
    <td height="20" bgcolor="#B0E0E6"><div align="center" class="style1">添加图书类别</div></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#666666"><table width="400" height="25" border="0" cellpadding="0" cellspacing="1">
        <tr>
          <td width="90" bgcolor="#FFFFFF"><div align="center">类别名称：</div></td>
          <td width="307" bgcolor="#FFFFFF"><div align="left">
              &nbsp;
              <input type="text" name="leibie" size="40" maxlength="10" placeholder="请输入图书类别">
          </div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="25"><div align="center">
        <input name="submit" type="submit" id="submit" value="添加">
    </div></td>
  </tr>
  </form>
</table>
    </body>
</html>
